//统一管理咱们项目代发单相关的接口
import request from "@/utils/request"
//项目用户相关的请求地址
const API = {
  BEHALF_LIST_URL: "/super/behalf/list",
  BEHALF_DETAIL_URL: "/super/behalf/detail",
  BEHALF_REFUND_URL: "/super/behalf/refund",
  BEHALF_SEND_URL: "/super/behalf/send_water_refund",
  BEHALF_SEND_WATER_URL: "/super/behalf/send_water",
}

//获取代发单列表
export const list = (params) =>
  request.get(API.BEHALF_LIST_URL, { params })

//获取代发单详情
export const detail = (params) =>
  request.get(API.BEHALF_DETAIL_URL, { params })

//代发单-退款
export const refund = (data) =>
  request.post(API.BEHALF_REFUND_URL, data)

//上传售后单
export const send = (data) =>
  request.post(API.BEHALF_SEND_URL, data)

//发聚水潭
export const sendWater = (data) =>
  request.post(API.BEHALF_SEND_WATER_URL, data)
